
<!DOCTYPE HTML>
<html lang="zh-cn" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>目录结构 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="development/" />
    
    
    <link rel="prev" href="Features.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="輸入並搜尋" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    总览
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="Getting-started.html">
            
                <a href="Getting-started.html">
            
                    
                    开始
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="Features.html">
            
                <a href="Features.html">
            
                    
                    技术栈
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.4" data-path="Structure.html">
            
                <a href="Structure.html">
            
                    
                    目录结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="development/">
            
                <a href="development/">
            
                    
                    深入了解
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="development/State-management.html">
            
                <a href="development/State-management.html">
            
                    
                    谈状态管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="development/URL-is-soul-of-SPA.html">
            
                <a href="development/URL-is-soul-of-SPA.html">
            
                    
                    URL 是单页应用的精华
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="development/Service-layer.html">
            
                <a href="development/Service-layer.html">
            
                    
                    引入服务层
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="development/Ajax-interface.html">
            
                <a href="development/Ajax-interface.html">
            
                    
                    Ajax 接口化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="development/Configuration.html">
            
                <a href="development/Configuration.html">
            
                    
                    配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="development/CORS-and-Proxy.html">
            
                <a href="development/CORS-and-Proxy.html">
            
                    
                    跨域与代理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="development/Best-practice.html">
            
                <a href="development/Best-practice.html">
            
                    
                    最佳实践
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="Reference.html">
            
                <a href="Reference.html">
            
                    
                    参考
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" >
            
                <a target="_blank" href="https://github.com/kenberkeley/vue-demo/issues">
            
                    
                    问题反馈（issues）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" >
            
                <a target="_blank" href="https://github.com/kenberkeley/vue-demo/releases">
            
                    
                    版本迭代（releases）
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本書使用 GitBook 釋出
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >目录结构</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#xA7;-&#x76EE;&#x5F55;&#x7ED3;&#x6784;">&#xA7; &#x76EE;&#x5F55;&#x7ED3;&#x6784;</h1>
<pre><code>.
&#x251C;&#x2500;&#x2500; build/               # Webpack &#x914D;&#x7F6E;&#x76EE;&#x5F55;
&#x251C;&#x2500;&#x2500; dist/                # build &#x751F;&#x6210;&#x7684;&#x751F;&#x4EA7;&#x73AF;&#x5883;&#x4E0B;&#x7684;&#x9879;&#x76EE;
&#x251C;&#x2500;&#x2500; src/                 # &#x6E90;&#x7801;&#x76EE;&#x5F55;&#xFF08;&#x5F00;&#x53D1;&#x90FD;&#x5728;&#x8FD9;&#x91CC;&#x8FDB;&#x884C;&#xFF09;
&#x2502;   &#x251C;&#x2500;&#x2500; assets/            # &#x653E;&#x7F6E;&#x9700;&#x8981;&#x7ECF;&#x7531; Webpack &#x5904;&#x7406;&#x7684;&#x9759;&#x6001;&#x6587;&#x4EF6;
&#x2502;   &#x251C;&#x2500;&#x2500; components/        # &#x7EC4;&#x4EF6;
&#x2502;   &#x251C;&#x2500;&#x2500; filters/           # &#x8FC7;&#x6EE4;&#x5668;
&#x2502;   &#x251C;&#x2500;&#x2500; mixins/            
&#x2502;   &#x251C;&#x2500;&#x2500; routes/            # &#x8DEF;&#x7531;
&#x2502;   &#x251C;&#x2500;&#x2500; services/          # &#x670D;&#x52A1;&#xFF08;&#x7EDF;&#x4E00;&#x7BA1;&#x7406; XHR &#x8BF7;&#x6C42;&#xFF09;
&#x2502;   &#x251C;&#x2500;&#x2500; utils/             # &#x5DE5;&#x5177;&#x7C7B;
&#x2502;   &#x251C;&#x2500;&#x2500; views/             # &#x8DEF;&#x7531;&#x9875;&#x9762;&#x7EC4;&#x4EF6;
&#x2502;   &#x251C;&#x2500;&#x2500; app.js             # &#x542F;&#x52A8;&#x6587;&#x4EF6;
&#x2502;   &#x251C;&#x2500;&#x2500; index.html         # &#x9759;&#x6001;&#x57FA;&#x9875;
&#x251C;&#x2500;&#x2500; static/              # &#x653E;&#x7F6E;&#x65E0;&#x9700;&#x7ECF;&#x7531; Webpack &#x5904;&#x7406;&#x7684;&#x9759;&#x6001;&#x6587;&#x4EF6;
&#x251C;&#x2500;&#x2500; .babelrc             # Babel &#x8F6C;&#x7801;&#x914D;&#x7F6E;
&#x251C;&#x2500;&#x2500; .eslintignore        # &#xFF08;&#x914D;&#x7F6E;&#xFF09;ESLint &#x68C0;&#x67E5;&#x4E2D;&#x9700;&#x5FFD;&#x7565;&#x7684;&#x6587;&#x4EF6;&#xFF08;&#x5939;&#xFF09;
&#x251C;&#x2500;&#x2500; .eslintrc            # ESLint &#x914D;&#x7F6E;
&#x251C;&#x2500;&#x2500; .gitignore           # &#xFF08;&#x914D;&#x7F6E;&#xFF09;&#x9700;&#x88AB; Git &#x5FFD;&#x7565;&#x7684;&#x6587;&#x4EF6;&#xFF08;&#x5939;&#xFF09;
&#x251C;&#x2500;&#x2500; package.json         # &#xFF08;&#x8FD9;&#x4E2A;&#x5C31;&#x4E0D;&#x7528;&#x591A;&#x89E3;&#x91CA;&#x4E86;&#x5427;&#xFF09;
</code></pre><p>&#x60A8;&#x53EF;&#x4EE5;&#x6839;&#x636E;&#x4E1A;&#x52A1;&#x9700;&#x6C42;&#x6539;&#x52A8;&#x76EE;&#x5F55;&#x7ED3;&#x6784;<br>&#x8B6C;&#x5982;&#x672C; demo &#x5C31;&#x5728;&#x6839;&#x76EE;&#x5F55;&#x4E0B;&#x65B0;&#x589E;&#x4E86; <code>docs/</code>&#xFF08;&#x6587;&#x6863;&#xFF09;&#x4E0E; <code>mock/</code>&#xFF08;Mock &#x670D;&#x52A1;&#x5668;&#xFF09;</p>
<hr>
<p>&#x4E0A;&#x8FF0;&#x76EE;&#x5F55;&#x7ED3;&#x6784;&#x4E2D;&#xFF0C;&#x9700;&#x8981;&#x6CE8;&#x610F;&#x7684;&#x662F; <code>src/components/</code> &#x4E0E; <code>src/views/</code> &#x7684;&#x533A;&#x522B;<br>&#x4E0D;&#x59A8;&#x628A;&#x672C; demo &#x4E2D;&#x7684;&#x8FD9;&#x4E24;&#x4E2A;&#x76EE;&#x5F55;&#x4EE5;&#x6811;&#x72B6;&#x5F62;&#x5F0F;&#x5C55;&#x5F00;&#xFF1A;</p>
<pre><code>src/components/                    # &#x7EC4;&#x4EF6;
    &#x251C;&#x2500;&#x2500; App.vue                      # &#x6839;&#x7EC4;&#x4EF6;
    &#x251C;&#x2500;&#x2500; Breadcrumb.vue               # &#x9762;&#x5305;&#x5C51;
    &#x251C;&#x2500;&#x2500; Navbar.vue                   # &#x9876;&#x90E8;&#x5BFC;&#x822A;&#x680F;
    &#x251C;&#x2500;&#x2500; Pagination.vue               # &#x5206;&#x9875;
    &#x251C;&#x2500;&#x2500; Select/                      # &#x4E0B;&#x62C9;&#x6846;&#x9009;&#x62E9;&#x6846;&#x7EC4;&#x4EF6;
    &#x2502;   &#x251C;&#x2500;&#x2500; LimitSelect.vue            # &#x201C;&#x6BCF;&#x9875;&#x663E;&#x793A;&#x591A;&#x5C11;&#x6761;&#x8BB0;&#x5F55;&#x201D; &#x4E0B;&#x62C9;&#x9009;&#x62E9;&#x6846;
    &#x2502;   &#x2514;&#x2500;&#x2500; Select2.vue                # &#x5BF9; Select2 &#x7684;&#x5C01;&#x88C5;
    &#x2514;&#x2500;&#x2500; Sidebar/                     # &#x4FA7;&#x8FB9;&#x680F;&#x7EC4;&#x4EF6;
        &#x251C;&#x2500;&#x2500; index.vue                  # &#x4FA7;&#x8FB9;&#x680F;
        &#x2514;&#x2500;&#x2500; Link.vue                   # &#x5BFC;&#x822A;&#x94FE;&#x63A5;&#x5C01;&#x88C5;

src/views/                         # &#x8DEF;&#x7531;&#x9875;&#x9762;&#x7EC4;&#x4EF6;
    &#x251C;&#x2500;&#x2500; index.vue                    # &#x9996;&#x9875;
    &#x251C;&#x2500;&#x2500; auth/                        # &#x7528;&#x6237;&#x8BA4;&#x8BC1;&#x6A21;&#x5757;
    &#x2502;   &#x251C;&#x2500;&#x2500; login.vue                  # &#x767B;&#x5F55;&#x9875;
    &#x2502;   &#x2514;&#x2500;&#x2500; logout.vue                 # &#x6CE8;&#x9500;&#x767B;&#x5F55;&#x9875;
    &#x2514;&#x2500;&#x2500; msg/                         # &#x7559;&#x8A00;&#x677F;&#x6A21;&#x5757;
        &#x251C;&#x2500;&#x2500; index.vue                  # &#x5BF9;&#x5E94; /msg&#xFF08;&#x7559;&#x8A00;&#x677F;&#x9996;&#x9875;&#xFF0C;alias =&gt; /msg/list&#xFF09;
        &#x251C;&#x2500;&#x2500; list.vue                   # &#x5BF9;&#x5E94; /msg/list&#xFF08;&#x7559;&#x8A00;&#x677F;&#x5217;&#x8868;&#xFF09;
        &#x251C;&#x2500;&#x2500; add.vue                    # &#x5BF9;&#x5E94; /msg/add&#xFF08;&#x65B0;&#x589E;&#x7559;&#x8A00;&#xFF09;
        &#x251C;&#x2500;&#x2500; detail.vue                 # &#x5BF9;&#x5E94; /msg/detail/:msgId&#xFF08;&#x67E5;&#x770B;&#x7559;&#x8A00;&#xFF09;
        &#x251C;&#x2500;&#x2500; update.vue                 # &#x5BF9;&#x5E94; /msg/update/:msgId&#xFF08;&#x4FEE;&#x6539;&#x7559;&#x8A00;&#xFF09;
        &#x251C;&#x2500;&#x2500; _components/               # &#x7559;&#x8A00;&#x677F;&#x6A21;&#x5757;&#x5171;&#x7528;&#x7EC4;&#x4EF6;
        &#x2502;   &#x251C;&#x2500;&#x2500; AuthorSelect.vue         # &#x7559;&#x8A00;&#x53D1;&#x5E03;&#x8005;&#x9009;&#x62E9;&#x4E0B;&#x62C9;&#x6846;
        &#x2502;   &#x251C;&#x2500;&#x2500; MsgForm.vue              # &#x7559;&#x8A00;&#x8868;&#x5355;
        &#x2502;   &#x2514;&#x2500;&#x2500; OptBtnGroup.vue          # &#x7559;&#x8A00;&#x64CD;&#x4F5C;&#x6309;&#x94AE;&#x7EC4;
        &#x2514;&#x2500;&#x2500; _mixins/                   # &#x7559;&#x8A00;&#x677F;&#x6A21;&#x5757;&#x5171;&#x7528; mixins
            &#x2514;&#x2500;&#x2500; autoLoadByParams.js      # &#x6839;&#x636E; $route.params.msgId &#x81EA;&#x52A8;&#x52A0;&#x8F7D;
</code></pre><p>&#x6839;&#x636E;&#x6CE8;&#x91CA;&#xFF0C;&#x6211;&#x4EEC;&#x5927;&#x6982;&#x77E5;&#x9053;&#x4E86;&#x4E8C;&#x8005;&#x7684;&#x5DEE;&#x522B;&#xFF1A;</p>
<h4 id="srccomponents"><code>src/components/</code></h4>
<ul>
<li>&#x4E3B;&#x8981;&#x662F;&#x5168;&#x5C40;&#x6027;&#x7684;&#xFF0C;&#x6216;&#x901A;&#x7528;&#x6027;&#x5F88;&#x5F3A;&#x7684;&#x7EC4;&#x4EF6;&#xFF0C;&#x5177;&#x5907;&#x826F;&#x597D;&#x7684;&#x5C01;&#x88C5;&#x6027;</li>
<li>&#x4E00;&#x822C;&#x4E0D;&#x4F1A;&#x6D89;&#x53CA;&#x5230;&#x5177;&#x4F53;&#x7684;&#x4E1A;&#x52A1;&#x903B;&#x8F91;</li>
</ul>
<h4 id="srcviews"><code>src/views/</code></h4>
<ul>
<li>&#x4E3B;&#x8981;&#x662F;&#x4E1A;&#x52A1;&#x6027;&#x7684;&#x9875;&#x9762;&#x7EC4;&#x4EF6;&#xFF0C;&#x57FA;&#x672C;&#x4E0D;&#x5177;&#x5907;&#x901A;&#x7528;&#x6027;</li>
<li>&#x57FA;&#x672C;&#x4E0E;&#x8DEF;&#x7531;&#x4E00;&#x4E00;&#x5BF9;&#x5E94;&#xFF08;&#x4F8B;&#x5982; <code>/src/views/auth/login.vue</code> &#x5BF9;&#x5E94;&#x7740;&#x8DEF;&#x7531; <code>/auth/login</code>&#xFF09;</li>
<li>&#x5404;&#x529F;&#x80FD;&#x6A21;&#x5757;&#xFF08;&#x5982; <code>msg/</code>&#xFF09;&#x5185;&#x90E8;&#x53EF;&#x5206;&#x79BB;&#x51FA;&#x901A;&#x7528;&#x90E8;&#x5206;&#xFF08;&#x5982; <code>_components/</code>&#x3001;<code>_mixins/</code>&#xFF09;</li>
</ul>
<blockquote>
<p>&#x82E5;&#x591A;&#x4E2A;&#x529F;&#x80FD;&#x6A21;&#x5757;&#x901A;&#x7528;&#x7684;&#xFF0C;&#x5219;&#x5EFA;&#x8BAE;&#x79FB;&#x5230;&#x5168;&#x5C40;&#xFF0C;&#x5373; <code>src/components/</code>&#x3001;<code>src/mixins/</code> &#x7B49;</p>
</blockquote>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="Features.html" class="navigation navigation-prev " aria-label="Previous page: 技术栈">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="development/" class="navigation navigation-next " aria-label="Next page: 深入了解">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"目录结构","level":"1.4","depth":1,"next":{"title":"深入了解","level":"1.5","depth":1,"path":"development/README.md","ref":"development/README.md","articles":[{"title":"谈状态管理","level":"1.5.1","depth":2,"path":"development/State-management.md","ref":"development/State-management.md","articles":[]},{"title":"URL 是单页应用的精华","level":"1.5.2","depth":2,"path":"development/URL-is-soul-of-SPA.md","ref":"development/URL-is-soul-of-SPA.md","articles":[]},{"title":"引入服务层","level":"1.5.3","depth":2,"path":"development/Service-layer.md","ref":"development/Service-layer.md","articles":[]},{"title":"Ajax 接口化","level":"1.5.4","depth":2,"path":"development/Ajax-interface.md","ref":"development/Ajax-interface.md","articles":[]},{"title":"配置","level":"1.5.5","depth":2,"path":"development/Configuration.md","ref":"development/Configuration.md","articles":[]},{"title":"跨域与代理","level":"1.5.6","depth":2,"path":"development/CORS-and-Proxy.md","ref":"development/CORS-and-Proxy.md","articles":[]},{"title":"最佳实践","level":"1.5.7","depth":2,"path":"development/Best-practice.md","ref":"development/Best-practice.md","articles":[]}]},"previous":{"title":"技术栈","level":"1.3","depth":1,"path":"Features.md","ref":"Features.md","articles":[]},"dir":"ltr"},"config":{"plugins":[],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"language":"zh-cn","gitbook":"*"},"file":{"path":"Structure.md","mtime":"2017-04-22T13:08:34.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-04-22T13:44:37.529Z"},"basePath":".","book":{"language":"zh-cn"}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

